<?php

namespace haibao\www\data\message;

class MessageUser extends \haibao\www\data\BaseMysql{

    public function __construct(){
        parent::__construct('\haibao\www\model\data\message\MessageUser');
		$this->setConfig( \haibao\classlibrary\www\Config::CLASSLIBRARY_CONFIG_MYSQL_HAIBAO_USER );
    }
    
    public function getMessageUserByUserId($userId){
        $sql = 'select * from MessageUser where UserId=%s';
        return $this->query($sql, array($userId))->fetch_assoc();
    }
}